Themes can be selected using several different rules, in this order:

  1. The theme attribute on the specific tag
  2. The theme attribute on a tag's surrounding form tag
  3. The page-scoped attribute named theme
  4. The request-scoped attribute named theme
  5. The session-scoped attribute named theme
  6. The application-scoped attribute named theme
  7. The webwork.ui.theme property in webwork.properties (defaults to xhtml)

A few important concepts come from this order:

  • You can override an entire form's theme by only changing the theme attribute for the forum. This makes it easy to use the ajax theme in just a few select places.
  • You can change the theme for a user's session. This might be useful if users can customize their look and feel.
  • If you want to change the theme for the entire application, adjust your webwork.properties.